package com.example.iot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName app_upgrade
 */
@TableName(value ="app_upgrade")
public class AppUpgrade implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 设备标识
     */
    private String deviceid;

    /**
     * app英文名
     */
    private String appname;

    /**
     * app版本
     */
    private String appversion;

    /**
     * 安装容器
     */
    private String installcontainer;

    /**
     * 是否升级 1 升级  2未升级
     */
    private Integer isipgrade;

    /**
     * 是否使用 1 使用  2未使用
     */
    private Integer isuse;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 设备标识
     */
    public String getDeviceid() {
        return deviceid;
    }

    /**
     * 设备标识
     */
    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }

    /**
     * app英文名
     */
    public String getAppname() {
        return appname;
    }

    /**
     * app英文名
     */
    public void setAppname(String appname) {
        this.appname = appname;
    }

    /**
     * app版本
     */
    public String getAppversion() {
        return appversion;
    }

    /**
     * app版本
     */
    public void setAppversion(String appversion) {
        this.appversion = appversion;
    }

    /**
     * 安装容器
     */
    public String getInstallcontainer() {
        return installcontainer;
    }

    /**
     * 安装容器
     */
    public void setInstallcontainer(String installcontainer) {
        this.installcontainer = installcontainer;
    }

    /**
     * 是否升级 1 升级  2未升级
     */
    public Integer getIsipgrade() {
        return isipgrade;
    }

    /**
     * 是否升级 1 升级  2未升级
     */
    public void setIsipgrade(Integer isipgrade) {
        this.isipgrade = isipgrade;
    }

    /**
     * 是否使用 1 使用  2未使用
     */
    public Integer getIsuse() {
        return isuse;
    }

    /**
     * 是否使用 1 使用  2未使用
     */
    public void setIsuse(Integer isuse) {
        this.isuse = isuse;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AppUpgrade other = (AppUpgrade) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDeviceid() == null ? other.getDeviceid() == null : this.getDeviceid().equals(other.getDeviceid()))
            && (this.getAppname() == null ? other.getAppname() == null : this.getAppname().equals(other.getAppname()))
            && (this.getAppversion() == null ? other.getAppversion() == null : this.getAppversion().equals(other.getAppversion()))
            && (this.getInstallcontainer() == null ? other.getInstallcontainer() == null : this.getInstallcontainer().equals(other.getInstallcontainer()))
            && (this.getIsipgrade() == null ? other.getIsipgrade() == null : this.getIsipgrade().equals(other.getIsipgrade()))
            && (this.getIsuse() == null ? other.getIsuse() == null : this.getIsuse().equals(other.getIsuse()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeviceid() == null) ? 0 : getDeviceid().hashCode());
        result = prime * result + ((getAppname() == null) ? 0 : getAppname().hashCode());
        result = prime * result + ((getAppversion() == null) ? 0 : getAppversion().hashCode());
        result = prime * result + ((getInstallcontainer() == null) ? 0 : getInstallcontainer().hashCode());
        result = prime * result + ((getIsipgrade() == null) ? 0 : getIsipgrade().hashCode());
        result = prime * result + ((getIsuse() == null) ? 0 : getIsuse().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deviceid=").append(deviceid);
        sb.append(", appname=").append(appname);
        sb.append(", appversion=").append(appversion);
        sb.append(", installcontainer=").append(installcontainer);
        sb.append(", isipgrade=").append(isipgrade);
        sb.append(", isuse=").append(isuse);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}